<template>
  <cat-crud :config="config" :controller="controller"></cat-crud>
</template>

<script setup lang="ts">
import {onMounted, ref, type Ref, unref} from "vue";
import UserController, {type UserConfig } from './UserController'
const config = <Ref<UserConfig>>ref<UserConfig>();
config.value = {
columns: [
  {title: '执行动作', dataIndex: 'jobName'},
  {title: '步骤名称', dataIndex: 'stepName'},
  {title: '策略名称', dataIndex: 'calendarName'},
  {title: '执行时间', dataIndex: 'startTime', type: 'datetime'},
  {title: '耗时(毫秒)', dataIndex: 'duration', type: 'number', width: 120},
  {title: '执行结果', dataIndex: 'resultName', type: 'dict', sortIndex: 'result'}
]
}
const controller = new UserController(unref(config));
onMounted(() => {})


</script>
./UserController